package com.jhc.entity;

import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.jhc.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *  宿舍表
 * </p>
 *
 * @author zhengyue
 * @since 2020-03-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class BacDormitory extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     *老师编号/可有多个老师
     */
    private String classAdviserNumber;


    /**
     * 班级id/可有多个班级
     */
    private String classId;

    /**
     * 房间号
     */
    private Integer room;

    /**
     * 楼栋ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long buildingId;

    /**
     * 辅导员编号
     */
    private String counselorNumber;

    /**
     * 是否实习寝室，1->是，0->不是
     */
    private Boolean isInternship;

    /**
     * 实习到期时间
     */
    private LocalDate internshipPeriod;

    /**
     * 是否样板寝室
     */
    private Boolean isTemplate;

    /**
     * 所属学院编号
     */
    private String collageNumber;

    /**
     * 空闲床位数
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long spaceBedNum;


}
